//
//  CollectionViewCell1.m
//  Civacrm
//
//  Created by 王桂敏 on 2017/2/15.
//  Copyright © 2017年 王桂敏. All rights reserved.
//

#import "CollectionViewCell1.h"

@implementation CollectionViewCell1

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)initView{
    
    self.backgroundColor = WhiteColor;
    
    UIImageView *imageView = [UIImageView imageViewWithFrame:CGRectMake(w(20), h(19), w(5), h(20)) image:nil];
    imageView.backgroundColor = GlobalBlue;
    [self addSubview:imageView];
    
    self.titleLabel = [UILabel labelWithTitle:nil frame:CGRectMake(getMaxX(imageView) + w(11), imageView.y, kScreenWidth - w(11) - getMaxX(imageView), imageView.height) font:font(22) textColor:GlobalBlue bgColor:WhiteColor];
    [self addSubview:self.titleLabel];
    
}

- (void)configCellWithModel:(TabModel *)model{
    
    self.titleLabel.text = model.name;
    
}

@end
